#ifndef __DRV_RSXXX_H
#define __DRV_RSXXX_H		

#if defined(USE_HAL_DRIVER)
  #if defined(STM32F405xx) || defined(STM32F407xx) || defined(STM32F429xx)
    #include <stm32f4xx_hal.h>
  #endif
  #if defined(STM32F103xx)
    #include <stm32f1xx_hal.h>
  #endif
  #if defined(STM32H750xx)
    #include <stm32h7xx_hal.h>
  #endif
#endif

#ifdef __cplusplus
class RSxxx{
	public:
		RSxxx(UART_HandleTypeDef*huart, GPIO_TypeDef* EN_GPIOx, uint16_t EN_GPIO_Pin);
		void sendData(uint8_t *buf,uint8_t len);
	private:
		UART_HandleTypeDef*_huart;
		GPIO_TypeDef* _GPIOx;
		uint16_t _GPIO_Pin;
};	
	 
#endif

#endif	   
















